{"version":3,"sources":["backend.js"],"names":["BX","namespace","isPlainObject","Landing","Utils","isString","addQueryParams","Backend","this","ajaxController","site","message","undefined","instance","getInstance","prototype","action","data","queryParams","uploadParams","type","getSiteId","assign","site_id","requestBody","sessid","bitrix_sessid","replace","lid","Main","id","block","url","util","add_url_param","objectMerge","Promise","resolve","reject","fd","Http","Data","convertObjectToFormData","xhr","ajax","method","dataType","start","preparePost","onsuccess","result","onfailure","error","send","then","response","UI","Panel","StatusPanel","update","catch","err","ErrorManager","add","batch","siteId","options","upload","file","formData","FormData","params","append","name","set","context","uploadImage","form","document","createElement","picture","submitAjax"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,cAEb,IAAIC,EAAgBF,GAAGG,QAAQC,MAAMF,cACrC,IAAIG,EAAWL,GAAGG,QAAQC,MAAMC,SAChC,IAAIC,EAAiBN,GAAGG,QAAQC,MAAME,eAStCN,GAAGG,QAAQI,QAAU,WAGpBC,KAAKC,eAAiBH,EAAe,kCACpCI,KAAMV,GAAGW,QAAQ,WAAaX,GAAGW,QAAQ,WAAaC,aASxDZ,GAAGG,QAAQI,QAAQM,SAAW,KAO9Bb,GAAGG,QAAQI,QAAQO,YAAc,WAEhC,IAAKd,GAAGG,QAAQI,QAAQM,SACxB,CACCb,GAAGG,QAAQI,QAAQM,SAAW,IAAIb,GAAGG,QAAQI,QAG9C,OAAOP,GAAGG,QAAQI,QAAQM,UAI3Bb,GAAGG,QAAQI,QAAQQ,WASlBC,OAAQ,SAASA,EAAQC,EAAMC,EAAaC,GAE3CA,EAAenB,GAAGoB,KAAKlB,cAAciB,GAAgBA,KACrDD,EAAclB,GAAGoB,KAAKlB,cAAcgB,GAAeA,KAEnD,GAAIV,KAAKa,cAAgBT,UACzB,CACCZ,GAAGG,QAAQC,MAAMkB,OAAOJ,GAAcK,QAASf,KAAKa,cAGrD,IAAIG,KACJA,EAAYC,OAASzB,GAAG0B,gBACxBF,EAAYR,OAASA,EAAOW,QAAQ,iBAAkB,SACtDH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